package dao.subline;

import java.util.List;

import vo.SublineVO;

import com.ibatis.sqlmap.client.SqlMapClient;

public class SublineDAOImpl implements SublineDAO{

	private SqlMapClient sqlMapClient;

	public void setSqlMapClient(SqlMapClient sqlMapClient) {
		this.sqlMapClient = sqlMapClient;
	}

	@Override
	public List<SublineVO> getSublineListOnLine(int subline_no) throws Exception {
		return sqlMapClient.queryForList("subline.getSublineListOnLine", subline_no);
	}

	@Override
	public List<SublineVO> getSublineList() throws Exception {
		return sqlMapClient.queryForList("subline.getSublineList");
	}

	@Override
	public void registerSubline(SublineVO param) throws Exception {
		sqlMapClient.insert("subline.registerSubline", param);
	}

	@Override
	public void updateSubline(SublineVO param) throws Exception {
		sqlMapClient.update("subline.updateSubline", param);
	}

	@Override
	public void deleteSubline(int subline_no) throws Exception {
		sqlMapClient.update("subline.deleteSubline", subline_no);
	}
}
